import request from "@/admin/utils/request"

//添加
export function addTenant(data) {
    return request({
        url: "/apis/base/tenant", method: "post", data
    });
}

//列表
export function tenantList(params) {
    return request({
        url: "/apis/base/tenant", method: "get", params
    });
}

//删除
export function delTenant(id) {
    return request({
        url: `/apis/base/tenant/${id}`, method: "delete",
    });
}

//更新
export function upDateTenant(data, id) {
    return request({
        url: `/apis/base/tenant/${id}`, method: "put", data
    });
}
